package com.jiancong.service;

import com.jiancong.domain.ResponseResult;
import com.jiancong.domain.dto.AddArticleDto;
import com.jiancong.domain.entity.Article;
import com.jiancong.domain.vo.ArticleAndTas;
import com.jiancong.domain.vo.ArticleVo;

public interface ArticleService{

    ResponseResult hostArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);


    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto articleDto);

    ResponseResult getArticles(Integer pageNum, Integer pageSize, ArticleVo articlevo);


    ArticleAndTas getArticleDetailById(Long id);

    ResponseResult updateArticle(AddArticleDto article);

    ResponseResult deleteArticle(Long id);
}
